package com.wise.summer.v1.portal.content.onlineshops;

import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.SkipUserAuth;
import com.wise.framework.daoannotations.Column;
import com.wise.framework.summer.BasicSummer;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Tolerate;

import java.util.List;
import java.util.Map;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Getter
@Setter
@ApiInfo("获取店铺列表")
@SkipUserAuth
@Publish
public class ListOnlineShops extends BasicSummer<Map<String, List<ListOnlineShops.Result>>> {

	@Getter
	@Setter
	@Builder
	public static class Result {
		@Tolerate
		public Result() {

		}

		@ApiInfo("平台")
		@Column("platform")
		private String platform;

		@ApiInfo("店铺名")
		@Column("shop_name")
		private String shopName;

		@ApiInfo("店铺类型")
		private String shopTypeName;

		@ApiInfo("店铺链接")
		@Column("shop_url")
		private String shopUrl;

		@ApiInfo("城市code")
		@Column("city_code")
		private String cityCode;

		@ApiInfo("城市名")
		@Column("city_name")
		private String cityName;

		@ApiInfo("区域-全国,默认false,值为true时所在城市为全国")
		@Column("is_country")
		private boolean isCountry;
	}
}
